#include <windows.h>

/*
	use GetTickCount() and Sleep()
*/





int main(void)
{
	const int busyTime = 10;
	const int idleTime = busyTime;
	INT64 startIime = 0;
	SetThreadAffinityMask(GetCurrentProcess(), 0x00000001);

	while (true)
	{
		startIime = GetTickCount();
		while ((GetTickCount() - startIime)<=busyTime)
		{

		}
		Sleep(idleTime);
	}
	return 0;

}